const Router = require('koa-router');

//控制器
const { submit } = require('../controller/idea.controller');

//中间件
const { auth } = require('../middleware/auth.middleware');
const { validator } = require('../middleware/validator.middleware');

const router = new Router({ prefix: '/idea' });

//提交意见反馈
router.post('/submit', auth, validator({ idea_time: 'dateTime' }), submit);

module.exports = router;